﻿

using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;


public class BLL_tbl_siconide_milljet
{
    public BLL_tbl_siconide_milljet()
    {

    }

    public List<tbl_siconide_milljet> select(int ID)
    {
        DAL_tbl_siconide_milljet dal = new DAL_tbl_siconide_milljet();
        return dal.select(ID);
    }

    public List<tbl_siconide_milljet> selectAll()
    {
        DAL_tbl_siconide_milljet dal = new DAL_tbl_siconide_milljet();
        return dal.selectAll();
    }

    public DataTable selectAllForGrid()
    {
        DAL_tbl_siconide_milljet dal = new DAL_tbl_siconide_milljet();
        return dal.selectAllForGrid();
    }

    public bool insert(tbl_siconide_milljet tbl)
    {
        DAL_tbl_siconide_milljet dal = new DAL_tbl_siconide_milljet();
        int i = 0;
        i = dal.insert(
            tbl.Mill
, tbl.Feed_Rate
, tbl.Charge_Number
, tbl.Pressure
, tbl.Flowbin_Number
, tbl.Quantity_Used_MJ1
, tbl.SSA
, tbl.Remark
,tbl.Previous_Process
,tbl.PALLA_RUN_NUMBER
,tbl.MILLJET_RUN_NUMBER
, tbl.CREATED_BY
, tbl.CREATED_DATE
        );

        return Convert.ToBoolean(i);
    }


    public bool update(tbl_siconide_milljet tbl)
    {
        DAL_tbl_siconide_milljet dal = new DAL_tbl_siconide_milljet();
        int i = 0;
        i = dal.update(
            tbl.ID
,tbl.Mill
, tbl.Feed_Rate
, tbl.Charge_Number
, tbl.Pressure
, tbl.Flowbin_Number
, tbl.Quantity_Used_MJ1
, tbl.SSA
, tbl.Remark
, tbl.Previous_Process
, tbl.PALLA_RUN_NUMBER
, tbl.MILLJET_RUN_NUMBER
, tbl.UPDATED_BY
, tbl.UPDATED_DATE
            );

        return Convert.ToBoolean(i);
    }


    public bool delete(tbl_siconide_milljet tbl)
    {
        DAL_tbl_siconide_milljet dal = new DAL_tbl_siconide_milljet();
        int i = 0;
        i = dal.delete(
                tbl.ID
        );

        return Convert.ToBoolean(i);
    }

    public DataTable GetPalla_Run_Number()
    {
        DAL_tbl_siconide_milljet dal = new DAL_tbl_siconide_milljet();
        return dal.GetPalla_Run_Number();
    }
}

